Skip to content

Conversation

natecook1000
Copy link
Member

If the synchronous main() is running for an AsyncParsableCommand root, something went wrong. Previously, this was only diagnosed when there was an async subcommand; this change expands the failure condition to include standalone async commands.

Fixes #662.

(Tested locally, since we don't have crash tests.)

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

If the synchronous `main()` is running for an `AsyncParsableCommand`
root, something went wrong. Previously, this was only diagnosed when
there was an async subcommand; this change expands the failure
condition to include standalone async commands.

Fixes #662.
@natecook1000 natecook1000 enabled auto-merge (squash) February 15, 2025 20:04
@natecook1000
Copy link
Member Author

@swift-ci Please test

@natecook1000 natecook1000 merged commit 74f1f8c into main Feb 15, 2025
22 checks passed
@natecook1000 natecook1000 deleted the async-root-avail branch February 15, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsyncParsableCommand never runs. Only shows help text.

1 participant